#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main()
{
    FILE* pf = fopen("bite","w+");
    if(pf == NULL)
    {
        perror("pf");
        return -1;
    }
    const char str[] = "linux so easy!";
    fwrite(str,1,strlen(str),pf);
    fseek(pf,0,SEEK_SET);
    char buff[50];
    size_t end = fread(buff,1,strlen(str),pf);
    buff[end] = '\0';
    printf("%s\n",buff);

    fclose(pf);

    return 0;
}
